$(document).ready(function() {
    var win_w = $(window).width();
    // 设置页面布局(将变量开放到全局)
    window.pageLayout = $("body").layout({
        applyDefaultStyles: true,
        north__paneSelector: "#outer-north",
        north__togglerLength_open: '100%',
        north__togglerLength_closed: '100%',
        west__spacing_open: 9,
        north__size: '20px',
        north__minSize: '20px',
        north__maxSize: '20px',
        north__onresize: function() {
            console.log('outer-north resize');
        },
        center__paneSelector: "#outer-center",
        center__maskContents: true,
        center__childOptions: {
            west__paneSelector: "#inner-west",
            west__contentSelector: '#inner-west > .content',
            west__contentIgnoreSelector: '#inner-west > .header',
            west__spacing_open: 8,
            west__spacing_closed: 20,
            west__togglerLength_closed: 80,
            west__togglerAlign_closed: "top",
            west__togglerContent_closed: "M<br />E<br />N<br />U",
            west__size: 0.2,
            west__minSize: 0.1,
            west__maxSize: 0.6,
            center__paneSelector: "#inner-center",
            center__onresize: function() {
                console.log('inner-center resize');
            },
            center__maskContents: true
        }
    });

    setTimeout(pageLayout.resizeAll, 1000); /* allow time for browser to re-render for theme */
    setTimeout(pageLayout.resizeAll, 5000); /* for really slow browsers */
});